#include "picture.h"

Picture::Picture(const QString &file_path):
    Picture(QUrl::fromLocalFile(file_path))
{

}

Picture::Picture(const QUrl &file_url):
    m_id(-1),
    m_album_id(-1),
    m_file_url(file_url)
{

}

int Picture::id() const
{
    return m_id;
}

void Picture::set_id(int id)
{
    m_id = id;
}

int Picture::album_id() const
{
    return m_album_id;
}

void Picture::set_album_id(int album_id)
{
    m_album_id = album_id;
}

QUrl Picture::file_url() const
{
    return m_file_url;
}

void Picture::set_file_url(const QUrl &file_url)
{
    m_file_url = file_url;
}
